home *** CD-ROM | disk | FTP | other *** search
/ Internet E-Mail Workshop / Internet E-Mail Workshop.iso / info / rc1098. < prev    next >
Text File  |  1993-11-24  |  72KB  |  1,925 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8. Network Working Group                                            J. Case
  9. Request for Comments: 1098          University of Tennessee at Knoxville
  10. Obsoletes: RFC 1067                                             M. Fedor
  11.                                                           NYSERNet, Inc.
  12.                                                           M. Schoffstall
  13.                                         Rensselaer Polytechnic Institute
  14.                                                                 C. Davin
  15.                                      MIT Laboratory for Computer Science
  16.                                                               April 1989
  17.  
  18.  
  19.               A Simple Network Management Protocol (SNMP)
  20.  
  21.                            Table of Contents
  22.  
  23.    1. Status of this Memo ...................................    2
  24.    2. Introduction ..........................................    2
  25.    3. The SNMP Architecture .................................    4
  26.    3.1 Goals of the Architecture ............................    4
  27.    3.2 Elements of the Architecture .........................    4
  28.    3.2.1 Scope of Management Information ....................    5
  29.    3.2.2 Representation of Management Information ...........    5
  30.    3.2.3 Operations Supported on Management Information .....    6
  31.    3.2.4 Form and Meaning of Protocol Exchanges .............    7
  32.    3.2.5 Definition of Administrative Relationships .........    7
  33.    3.2.6 Form and Meaning of References to Managed Objects ..   11
  34.    3.2.6.1 Resolution of Ambiguous MIB References ...........   11
  35.    3.2.6.2 Resolution of References across MIB Versions......   11
  36.    3.2.6.3 Identification of Object Instances ...............   11
  37.    3.2.6.3.1 ifTable Object Type Names ......................   12
  38.    3.2.6.3.2 atTable Object Type Names ......................   12
  39.    3.2.6.3.3 ipAddrTable Object Type Names ..................   13
  40.    3.2.6.3.4 ipRoutingTable Object Type Names ...............   13
  41.    3.2.6.3.5 tcpConnTable Object Type Names .................   13
  42.    3.2.6.3.6 egpNeighTable Object Type Names ................   14
  43.    4. Protocol Specification ................................   15
  44.    4.1 Elements of Procedure ................................   16
  45.    4.1.1 Common Constructs ..................................   18
  46.    4.1.2 The GetRequest-PDU .................................   19
  47.    4.1.3 The GetNextRequest-PDU .............................   20
  48.    4.1.3.1 Example of Table Traversal .......................   22
  49.    4.1.4 The GetResponse-PDU ................................   23
  50.    4.1.5 The SetRequest-PDU .................................   24
  51.    4.1.6 The Trap-PDU .......................................   26
  52.    4.1.6.1 The coldStart Trap ...............................   27
  53.    4.1.6.2 The warmStart Trap ...............................   27
  54.    4.1.6.3 The linkDown Trap ................................   27
  55.    4.1.6.4 The linkUp Trap ..................................   27
  56.  
  57.  
  58.  
  59. Case, Fedor, Schoffstall, & Davin                               [Page 1]
  60.  
  61. RFC 1098                          SNMP                        April 1989
  62.  
  63.  
  64.    4.1.6.5 The authenticationFailure Trap ...................   27
  65.    4.1.6.6 The egpNeighborLoss Trap .........................   27
  66.    4.1.6.7 The enterpriseSpecific Trap ......................   28
  67.    5. Definitions ...........................................   29
  68.    6. Acknowledgements ......................................   32
  69.    7. References ............................................   33
  70.  
  71. 1.  Status of this Memo
  72.  
  73.    This RFC is a re-release of RFC 1067, with a changed "Status of this
  74.    Memo" section.  This memo defines a simple protocol by which
  75.    management information for a network element may be inspected or
  76.    altered by logically remote users.  In particular, together with its
  77.    companion memos which describe the structure of management
  78.    information along with the initial management information base, these
  79.    documents provide a simple, workable architecture and system for
  80.    managing TCP/IP-based internets and in particular the Internet.
  81.  
  82.    The Internet Activities Board (IAB) has designated two different
  83.    network management protocols with the same status of "Draft Standard"
  84.    and "Recommended".
  85.  
  86.    The two protocols are the Common Management Information Services and
  87.    Protocol over TCP/IP (CMOT) [9], and the Simple Network Management
  88.    Protocol (SNMP) (this memo).
  89.  
  90.    The IAB intends each of these two protocols to receive the attention
  91.    of implementers and experimenters.  The IAB seeks reports of
  92.    experience with these two protocols from system builders and users.
  93.  
  94.    By this action, the IAB recommends that all IP and TCP
  95.    implementations be network manageable (e.g., implement the Internet
  96.    MIB [3]) and that the implementations that are network manageable are
  97.    expected to adopt and implement at least one of these two Internet
  98.    Draft Standards.
  99.  
  100.    Distribution of this memo is unlimited.
  101.  
  102. 2.  Introduction
  103.  
  104.    As reported in RFC 1052, IAB Recommendations for the Development of
  105.    Internet Network Management Standards [1], the Internet Activities
  106.    Board has directed the Internet Engineering Task Force (IETF) to
  107.    create two new working groups in the area of network management.  One
  108.    group is charged with the further specification and definition of
  109.    elements to be included in the Management Information Base (MIB).
  110.    The other is charged with defining the modifications to the Simple
  111.    Network Management Protocol (SNMP) to accommodate the short-term
  112.  
  113.  
  114.  
  115. Case, Fedor, Schoffstall, & Davin                               [Page 2]
  116.  
  117. RFC 1098                          SNMP                        April 1989
  118.  
  119.  
  120.    needs of the network vendor and operations communities, and to align
  121.    with the output of the MIB working group.
  122.  
  123.    The MIB working group has produced two memos, one which defines a
  124.    Structure for Management Information (SMI) [2] for use by the managed
  125.    objects contained in the MIB.  A second memo [3] defines the list of
  126.    managed objects.
  127.  
  128.    The output of the SNMP Extensions working group is this memo, which
  129.    incorporates changes to the initial SNMP definition [4] required to
  130.    attain alignment with the output of the MIB working group.  The
  131.    changes should be minimal in order to be consistent with the IAB's
  132.    directive that the working groups be "extremely sensitive to the need
  133.    to keep the SNMP simple."  Although considerable care and debate has
  134.    gone into the changes to the SNMP which are reflected in this memo,
  135.    the resulting protocol is not backwardly-compatible with its
  136.    predecessor, the Simple Gateway Monitoring Protocol (SGMP) [5].
  137.    Although the syntax of the protocol has been altered, the original
  138.    philosophy, design decisions, and architecture remain intact.  In
  139.    order to avoid confusion, new UDP ports have been allocated for use
  140.    by the protocol described in this memo.
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171. Case, Fedor, Schoffstall, & Davin                               [Page 3]
  172.  
  173. RFC 1098                          SNMP                        April 1989
  174.  
  175.  
  176. 3.  The SNMP Architecture
  177.  
  178.    Implicit in the SNMP architectural model is a collection of network
  179.    management stations and network elements.  Network management
  180.    stations execute management applications which monitor and control
  181.    network elements.  Network elements are devices such as hosts,
  182.    gateways, terminal servers, and the like, which have management
  183.    agents responsible for performing the network management functions
  184.    requested by the network management stations.  The Simple Network
  185.    Management Protocol (SNMP) is used to communicate management
  186.    information between the network management stations and the agents in
  187.    the network elements.
  188.  
  189. 3.1.  Goals of the Architecture
  190.  
  191.    The SNMP explicitly minimizes the number and complexity of management
  192.    functions realized by the management agent itself.  This goal is
  193.    attractive in at least four respects:
  194.  
  195.       (1)  The development cost for management agent software
  196.            necessary to support the protocol is accordingly reduced.
  197.  
  198.       (2)  The degree of management function that is remotely
  199.            supported is accordingly increased, thereby admitting
  200.            fullest use of internet resources in the management task.
  201.  
  202.       (3)  The degree of management function that is remotely
  203.            supported is accordingly increased, thereby imposing the
  204.            fewest possible restrictions on the form and
  205.            sophistication of management tools.
  206.  
  207.       (4)  Simplified sets of management functions are easily
  208.            understood and used by developers of network management
  209.            tools.
  210.  
  211.    A second goal of the protocol is that the functional paradigm for
  212.    monitoring and control be sufficiently extensible to accommodate
  213.    additional, possibly unanticipated aspects of network operation and
  214.    management.
  215.  
  216.    A third goal is that the architecture be, as much as possible,
  217.    independent of the architecture and mechanisms of particular hosts or
  218.    particular gateways.
  219.  
  220. 3.2.  Elements of the Architecture
  221.  
  222.    The SNMP architecture articulates a solution to the network
  223.    management problem in terms of:
  224.  
  225.  
  226.  
  227. Case, Fedor, Schoffstall, & Davin                               [Page 4]
  228.  
  229. RFC 1098                          SNMP                        April 1989
  230.  
  231.  
  232.       (1)  the scope of the management information communicated by
  233.            the protocol,
  234.  
  235.       (2)  the representation of the management information
  236.            communicated by the protocol,
  237.  
  238.       (3)  operations on management information supported by the
  239.            protocol,
  240.  
  241.       (4)  the form and meaning of exchanges among management
  242.            entities,
  243.  
  244.       (5)  the definition of administrative relationships among
  245.            management entities, and
  246.  
  247.       (6)  the form and meaning of references to management
  248.            information.
  249.  
  250. 3.2.1.  Scope of Management Information
  251.  
  252.    The scope of the management information communicated by operation of
  253.    the SNMP is exactly that represented by instances of all non-
  254.    aggregate object types either defined in Internet-standard MIB or
  255.    defined elsewhere according to the conventions set forth in
  256.    Internet-standard SMI [2].
  257.  
  258.    Support for aggregate object types in the MIB is neither required for
  259.    conformance with the SMI nor realized by the SNMP.
  260.  
  261. 3.2.2.  Representation of Management Information
  262.  
  263.    Management information communicated by operation of the SNMP is
  264.    represented according to the subset of the ASN.1 language [6] that is
  265.    specified for the definition of non-aggregate types in the SMI.
  266.  
  267.    The SGMP adopted the convention of using a well-defined subset of the
  268.    ASN.1 language [6].  The SNMP continues and extends this tradition by
  269.    utilizing a moderately more complex subset of ASN.1 for describing
  270.    managed objects and for describing the protocol data units used for
  271.    managing those objects.  In addition, the desire to ease eventual
  272.    transition to OSI-based network management protocols led to the
  273.    definition in the ASN.1 language of an Internet-standard Structure of
  274.    Management Information (SMI) [2] and Management Information Base
  275.    (MIB) [3].  The use of the ASN.1 language, was, in part, encouraged
  276.    by the successful use of ASN.1 in earlier efforts, in particular, the
  277.    SGMP.  The restrictions on the use of ASN.1 that are part of the SMI
  278.    contribute to the simplicity espoused and validated by experience
  279.    with the SGMP.
  280.  
  281.  
  282.  
  283. Case, Fedor, Schoffstall, & Davin                               [Page 5]
  284.  
  285. RFC 1098                          SNMP                        April 1989
  286.  
  287.  
  288.    Also for the sake of simplicity, the SNMP uses only a subset of the
  289.    basic encoding rules of ASN.1 [7].  Namely, all encodings use the
  290.    definite-length form.  Further, whenever permissible, non-constructor
  291.    encodings are used rather than constructor encodings.  This
  292.    restriction applies to all aspects of ASN.1 encoding, both for the
  293.    top-level protocol data units and the data objects they contain.
  294.  
  295. 3.2.3.  Operations Supported on Management Information
  296.  
  297.    The SNMP models all management agent functions as alterations or
  298.    inspections of variables.  Thus, a protocol entity on a logically
  299.    remote host (possibly the network element itself) interacts with the
  300.    management agent resident on the network element in order to retrieve
  301.    (get) or alter (set) variables.  This strategy has at least two
  302.    positive consequences:
  303.  
  304.       (1)  It has the effect of limiting the number of essential
  305.            management functions realized by the management agent to
  306.            two: one operation to assign a value to a specified
  307.            configuration or other parameter and another to retrieve
  308.            such a value.
  309.  
  310.       (2)  A second effect of this decision is to avoid introducing
  311.            into the protocol definition support for imperative
  312.            management commands:  the number of such commands is in
  313.            practice ever-increasing, and the semantics of such
  314.            commands are in general arbitrarily complex.
  315.  
  316.    The strategy implicit in the SNMP is that the monitoring of network
  317.    state at any significant level of detail is accomplished primarily by
  318.    polling for appropriate information on the part of the monitoring
  319.    center(s).  A limited number of unsolicited messages (traps) guide
  320.    the timing and focus of the polling.  Limiting the number of
  321.    unsolicited messages is consistent with the goal of simplicity and
  322.    minimizing the amount of traffic generated by the network management
  323.    function.
  324.  
  325.    The exclusion of imperative commands from the set of explicitly
  326.    supported management functions is unlikely to preclude any desirable
  327.    management agent operation.  Currently, most commands are requests
  328.    either to set the value of some parameter or to retrieve such a
  329.    value, and the function of the few imperative commands currently
  330.    supported is easily accommodated in an asynchronous mode by this
  331.    management model.  In this scheme, an imperative command might be
  332.    realized as the setting of a parameter value that subsequently
  333.    triggers the desired action.  For example, rather than implementing a
  334.    "reboot command," this action might be invoked by simply setting a
  335.    parameter indicating the number of seconds until system reboot.
  336.  
  337.  
  338.  
  339. Case, Fedor, Schoffstall, & Davin                               [Page 6]
  340.  
  341. RFC 1098                          SNMP                        April 1989
  342.  
  343.  
  344. 3.2.4.  Form and Meaning of Protocol Exchanges
  345.  
  346.    The communication of management information among management entities
  347.    is realized in the SNMP through the exchange of protocol messages.
  348.    The form and meaning of those messages is defined below in Section 4.
  349.  
  350.    Consistent with the goal of minimizing complexity of the management
  351.    agent, the exchange of SNMP messages requires only an unreliable
  352.    datagram service, and every message is entirely and independently
  353.    represented by a single transport datagram.  While this document
  354.    specifies the exchange of messages via the UDP protocol [8], the
  355.    mechanisms of the SNMP are generally suitable for use with a wide
  356.    variety of transport services.
  357.  
  358. 3.2.5.  Definition of Administrative Relationships
  359.  
  360.    The SNMP architecture admits a variety of administrative
  361.    relationships among entities that participate in the protocol.  The
  362.    entities residing at management stations and network elements which
  363.    communicate with one another using the SNMP are termed SNMP
  364.    application entities.  The peer processes which implement the SNMP,
  365.    and thus support the SNMP application entities, are termed protocol
  366.    entities.
  367.  
  368.    A pairing of an SNMP agent with some arbitrary set of SNMP
  369.    application entities is called an SNMP community.  Each SNMP
  370.    community is named by a string of octets, that is called the
  371.    community name for said community.
  372.  
  373.    An SNMP message originated by an SNMP application entity that in fact
  374.    belongs to the SNMP community named by the community component of
  375.    said message is called an authentic SNMP message.  The set of rules
  376.    by which an SNMP message is identified as an authentic SNMP message
  377.    for a particular SNMP community is called an authentication scheme.
  378.    An implementation of a function that identifies authentic SNMP
  379.    messages according to one or more authentication schemes is called an
  380.    authentication service.
  381.  
  382.    Clearly, effective management of administrative relationships among
  383.    SNMP application entities requires authentication services that (by
  384.    the use of encryption or other techniques) are able to identify
  385.    authentic SNMP messages with a high degree of certainty.  Some SNMP
  386.    implementations may wish to support only a trivial authentication
  387.    service that identifies all SNMP messages as authentic SNMP messages.
  388.  
  389.    For any network element, a subset of objects in the MIB that pertain
  390.    to that element is called a SNMP MIB view.  Note that the names of
  391.    the object types represented in a SNMP MIB view need not belong to a
  392.  
  393.  
  394.  
  395. Case, Fedor, Schoffstall, & Davin                               [Page 7]
  396.  
  397. RFC 1098                          SNMP                        April 1989
  398.  
  399.  
  400.    single sub-tree of the object type name space.
  401.  
  402.    An element of the set { READ-ONLY, READ-WRITE } is called an SNMP
  403.    access mode.
  404.  
  405.    A pairing of a SNMP access mode with a SNMP MIB view is called an
  406.    SNMP community profile.  A SNMP community profile represents
  407.    specified access privileges to variables in a specified MIB view. For
  408.    every variable in the MIB view in a given SNMP community profile,
  409.    access to that variable is represented by the profile according to
  410.    the following conventions:
  411.  
  412.       (1)  if said variable is defined in the MIB with "Access:" of
  413.            "none," it is unavailable as an operand for any operator;
  414.  
  415.       (2)  if said variable is defined in the MIB with "Access:" of
  416.            "read-write" or "write-only" and the access mode of the
  417.            given profile is READ-WRITE, that variable is available
  418.            as an operand for the get, set, and trap operations;
  419.  
  420.       (3)  otherwise, the variable is available as an operand for
  421.            the get and trap operations.
  422.  
  423.       (4)  In those cases where a "write-only" variable is an
  424.            operand used for the get or trap operations, the value
  425.            given for the variable is implementation-specific.
  426.  
  427.    A pairing of a SNMP community with a SNMP community profile is called
  428.    a SNMP access policy. An access policy represents a specified
  429.    community profile afforded by the SNMP agent of a specified SNMP
  430.    community to other members of that community.  All administrative
  431.    relationships among SNMP application entities are architecturally
  432.    defined in terms of SNMP access policies.
  433.  
  434.    For every SNMP access policy, if the network element on which the
  435.    SNMP agent for the specified SNMP community resides is not that to
  436.    which the MIB view for the specified profile pertains, then that
  437.    policy is called a SNMP proxy access policy. The SNMP agent
  438.    associated with a proxy access policy is called a SNMP proxy agent.
  439.    While careless definition of proxy access policies can result in
  440.    management loops, prudent definition of proxy policies is useful in
  441.    at least two ways:
  442.  
  443.       (1)  It permits the monitoring and control of network elements
  444.            which are otherwise not addressable using the management
  445.            protocol and the transport protocol.  That is, a proxy
  446.            agent may provide a protocol conversion function allowing
  447.            a management station to apply a consistent management
  448.  
  449.  
  450.  
  451. Case, Fedor, Schoffstall, & Davin                               [Page 8]
  452.  
  453. RFC 1098                          SNMP                        April 1989
  454.  
  455.  
  456.            framework to all network elements, including devices such
  457.            as modems, multiplexors, and other devices which support
  458.            different management frameworks.
  459.  
  460.       (2)  It potentially shields network elements from elaborate
  461.            access control policies.  For example, a proxy agent may
  462.            implement sophisticated access control whereby diverse
  463.            subsets of variables within the MIB are made accessible
  464.            to different management stations without increasing the
  465.            complexity of the network element.
  466.  
  467.    By way of example, Figure 1 illustrates the relationship between
  468.    management stations, proxy agents, and management agents.  In this
  469.    example, the proxy agent is envisioned to be a normal Internet
  470.    Network Operations Center (INOC) of some administrative domain which
  471.    has a standard managerial relationship with a set of management
  472.    agents.
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507. Case, Fedor, Schoffstall, & Davin                               [Page 9]
  508.  
  509. RFC 1098                          SNMP                        April 1989
  510.  
  511.  
  512.    +------------------+       +----------------+      +----------------+
  513.    |  Region #1 INOC  |       |Region #2 INOC  |      |PC in Region #3 |
  514.    |                  |       |                |      |                |
  515.    |Domain=Region #1  |       |Domain=Region #2|      |Domain=Region #3|
  516.    |CPU=super-mini-1  |       |CPU=super-mini-1|      |CPU=Clone-1     |
  517.    |PCommunity=pub    |       |PCommunity=pub  |      |PCommunity=slate|
  518.    |                  |       |                |      |                |
  519.    +------------------+       +----------------+      +----------------+
  520.           /|\                      /|\                     /|\
  521.            |                        |                       |
  522.            |                        |                       |
  523.            |                       \|/                      |
  524.            |               +-----------------+              |
  525.            +-------------->| Region #3 INOC  |<-------------+
  526.                            |                 |
  527.                            |Domain=Region #3 |
  528.                            |CPU=super-mini-2 |
  529.                            |PCommunity=pub,  |
  530.                            |         slate   |
  531.                            |DCommunity=secret|
  532.            +-------------->|                 |<-------------+
  533.            |               +-----------------+              |
  534.            |                       /|\                      |
  535.            |                        |                       |
  536.            |                        |                       |
  537.           \|/                      \|/                     \|/
  538.    +-----------------+     +-----------------+       +-----------------+
  539.    |Domain=Region#3  |     |Domain=Region#3  |       |Domain=Region#3  |
  540.    |CPU=router-1     |     |CPU=mainframe-1  |       |CPU=modem-1      |
  541.    |DCommunity=secret|     |DCommunity=secret|       |DCommunity=secret|
  542.    +-----------------+     +-----------------+       +-----------------+
  543.  
  544.  
  545.    Domain:  the administrative domain of the element
  546.    PCommunity:  the name of a community utilizing a proxy agent
  547.    DCommunity:  the name of a direct community
  548.  
  549.  
  550.                                  Figure 1
  551.                  Example Network Management Configuration
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563. Case, Fedor, Schoffstall, & Davin                              [Page 10]
  564.  
  565. RFC 1098                          SNMP                        April 1989
  566.  
  567.  
  568. 3.2.6.  Form and Meaning of References to Managed Objects
  569.  
  570.    The SMI requires that the definition of a conformant management
  571.    protocol address:
  572.  
  573.       (1)  the resolution of ambiguous MIB references,
  574.  
  575.       (2)  the resolution of MIB references in the presence multiple
  576.            MIB versions, and
  577.  
  578.       (3)  the identification of particular instances of object
  579.            types defined in the MIB.
  580.  
  581. 3.2.6.1.  Resolution of Ambiguous MIB References
  582.  
  583.    Because the scope of any SNMP operation is conceptually confined to
  584.    objects relevant to a single network element, and because all SNMP
  585.    references to MIB objects are (implicitly or explicitly) by unique
  586.    variable names, there is no possibility that any SNMP reference to
  587.    any object type defined in the MIB could resolve to multiple
  588.    instances of that type.
  589.  
  590. 3.2.6.2.  Resolution of References across MIB Versions
  591.  
  592.    The object instance referred to by any SNMP operation is exactly that
  593.    specified as part of the operation request or (in the case of a get-
  594.    next operation) its immediate successor in the MIB as a whole.  In
  595.    particular, a reference to an object as part of some version of the
  596.    Internet-standard MIB does not resolve to any object that is not part
  597.    of said version of the Internet-standard MIB, except in the case that
  598.    the requested operation is get-next and the specified object name is
  599.    lexicographically last among the names of all objects presented as
  600.    part of said version of the Internet-Standard MIB.
  601.  
  602. 3.2.6.3.  Identification of Object Instances
  603.  
  604.    The names for all object types in the MIB are defined explicitly
  605.    either in the Internet-standard MIB or in other documents which
  606.    conform to the naming conventions of the SMI.  The SMI requires that
  607.    conformant management protocols define mechanisms for identifying
  608.    individual instances of those object types for a particular network
  609.    element.
  610.  
  611.    Each instance of any object type defined in the MIB is identified in
  612.    SNMP operations by a unique name called its "variable name." In
  613.    general, the name of an SNMP variable is an OBJECT IDENTIFIER of the
  614.    form x.y, where x is the name of a non-aggregate object type defined
  615.    in the MIB and y is an OBJECT IDENTIFIER fragment that, in a way
  616.  
  617.  
  618.  
  619. Case, Fedor, Schoffstall, & Davin                              [Page 11]
  620.  
  621. RFC 1098                          SNMP                        April 1989
  622.  
  623.  
  624.    specific to the named object type, identifies the desired instance.
  625.  
  626.    This naming strategy admits the fullest exploitation of the semantics
  627.    of the GetNextRequest-PDU (see Section 4), because it assigns names
  628.    for related variables so as to be contiguous in the lexicographical
  629.    ordering of all variable names known in the MIB.
  630.  
  631.    The type-specific naming of object instances is defined below for a
  632.    number of classes of object types.  Instances of an object type to
  633.    which none of the following naming conventions are applicable are
  634.    named by OBJECT IDENTIFIERs of the form x.0, where x is the name of
  635.    said object type in the MIB definition.
  636.  
  637.    For example, suppose one wanted to identify an instance of the
  638.    variable sysDescr The object class for sysDescr is:
  639.  
  640.              iso org dod internet mgmt mib system sysDescr
  641.               1   3   6     1      2    1    1       1
  642.  
  643.    Hence, the object type, x, would be 1.3.6.1.2.1.1.1 to which is
  644.    appended an instance sub-identifier of 0.  That is, 1.3.6.1.2.1.1.1.0
  645.    identifies the one and only instance of sysDescr.
  646.  
  647. 3.2.6.3.1.  ifTable Object Type Names
  648.  
  649.    The name of a subnet interface, s, is the OBJECT IDENTIFIER value of
  650.    the form i, where i has the value of that instance of the ifIndex
  651.    object type associated with s.
  652.  
  653.    For each object type, t, for which the defined name, n, has a prefix
  654.    of ifEntry, an instance, i, of t is named by an OBJECT IDENTIFIER of
  655.    the form n.s, where s is the name of the subnet interface about which
  656.    i represents information.
  657.  
  658.    For example, suppose one wanted to identify the instance of the
  659.    variable ifType associated with interface 2.  Accordingly, ifType.2
  660.    would identify the desired instance.
  661.  
  662. 3.2.6.3.2.  atTable Object Type Names
  663.  
  664.    The name of an AT-cached network address, x, is an OBJECT IDENTIFIER
  665.    of the form 1.a.b.c.d, where a.b.c.d is the value (in the familiar
  666.    "dot" notation) of the atNetAddress object type associated with x.
  667.  
  668.    The name of an address translation equivalence e is an OBJECT
  669.    IDENTIFIER value of the form s.w, such that s is the value of that
  670.    instance of the atIndex object type associated with e and such that w
  671.    is the name of the AT-cached network address associated with e.
  672.  
  673.  
  674.  
  675. Case, Fedor, Schoffstall, & Davin                              [Page 12]
  676.  
  677. RFC 1098                          SNMP                        April 1989
  678.  
  679.  
  680.    For each object type, t, for which the defined name, n, has a prefix
  681.    of atEntry, an instance, i, of t is named by an OBJECT IDENTIFIER of
  682.    the form n.y, where y is the name of the address translation
  683.    equivalence about which i represents information.
  684.  
  685.    For example, suppose one wanted to find the physical address of an
  686.    entry in the address translation table (ARP cache) associated with an
  687.    IP address of 89.1.1.42 and interface 3.  Accordingly,
  688.    atPhysAddress.3.1.89.1.1.42 would identify the desired instance.
  689.  
  690. 3.2.6.3.3.  ipAddrTable Object Type Names
  691.  
  692.    The name of an IP-addressable network element, x, is the OBJECT
  693.    IDENTIFIER of the form a.b.c.d such that a.b.c.d is the value (in the
  694.    familiar "dot" notation) of that instance of the ipAdEntAddr object
  695.    type associated with x.
  696.  
  697.    For each object type, t, for which the defined name, n, has a prefix
  698.    of ipAddrEntry, an instance, i, of t is named by an OBJECT IDENTIFIER
  699.    of the form n.y, where y is the name of the IP-addressable network
  700.    element about which i represents information.
  701.  
  702.    For example, suppose one wanted to find the network mask of an entry
  703.    in the IP interface table associated with an IP address of 89.1.1.42.
  704.    Accordingly, ipAdEntNetMask.89.1.1.42 would identify the desired
  705.    instance.
  706.  
  707. 3.2.6.3.4.  ipRoutingTable Object Type Names
  708.  
  709.    The name of an IP route, x, is the OBJECT IDENTIFIER of the form
  710.    a.b.c.d such that a.b.c.d is the value (in the familiar "dot"
  711.    notation) of that instance of the ipRouteDest object type associated
  712.    with x.
  713.  
  714.    For each object type, t, for which the defined name, n, has a prefix
  715.    of ipRoutingEntry, an instance, i, of t is named by an OBJECT
  716.    IDENTIFIER of the form n.y, where y is the name of the IP route about
  717.    which i represents information.
  718.  
  719.    For example, suppose one wanted to find the next hop of an entry in
  720.    the IP routing table associated  with the destination of 89.1.1.42.
  721.    Accordingly, ipRouteNextHop.89.1.1.42 would identify the desired
  722.    instance.
  723.  
  724. 3.2.6.3.5.  tcpConnTable Object Type Names
  725.  
  726.    The name of a TCP connection, x, is the OBJECT IDENTIFIER of the form
  727.    a.b.c.d.e.f.g.h.i.j such that a.b.c.d is the value (in the familiar
  728.  
  729.  
  730.  
  731. Case, Fedor, Schoffstall, & Davin                              [Page 13]
  732.  
  733. RFC 1098                          SNMP                        April 1989
  734.  
  735.  
  736.    "dot" notation) of that instance of the tcpConnLocalAddress object
  737.    type associated with x and such that f.g.h.i is the value (in the
  738.    familiar "dot" notation) of that instance of the tcpConnRemoteAddress
  739.    object type associated with x and such that e is the value of that
  740.    instance of the tcpConnLocalPort object type associated with x and
  741.    such that j is the value of that instance of the tcpConnRemotePort
  742.    object type associated with x.
  743.  
  744.    For each object type, t, for which the defined name, n, has a prefix
  745.    of  tcpConnEntry, an instance, i, of t is named by an OBJECT
  746.    IDENTIFIER of the form n.y, where y is the name of the TCP connection
  747.    about which i represents information.
  748.  
  749.    For example, suppose one wanted to find the state of a TCP connection
  750.    between the local address of 89.1.1.42 on TCP port 21 and the remote
  751.    address of 10.0.0.51 on TCP port 2059.  Accordingly,
  752.    tcpConnState.89.1.1.42.21.10.0.0.51.2059 would identify the desired
  753.    instance.
  754.  
  755. 3.2.6.3.6.  egpNeighTable Object Type Names
  756.  
  757.    The name of an EGP neighbor, x, is the OBJECT IDENTIFIER of the form
  758.    a.b.c.d such that a.b.c.d is the value (in the familiar "dot"
  759.    notation) of that instance of the egpNeighAddr object type associated
  760.    with x.
  761.  
  762.    For each object type, t, for which the defined name, n, has a prefix
  763.    of egpNeighEntry, an instance, i, of t is named by an OBJECT
  764.    IDENTIFIER of the form n.y, where y is the name of the EGP neighbor
  765.    about which i represents information.
  766.  
  767.    For example, suppose one wanted to find the neighbor state for the IP
  768.    address of 89.1.1.42.  Accordingly, egpNeighState.89.1.1.42 would
  769.    identify the desired instance.
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787. Case, Fedor, Schoffstall, & Davin                              [Page 14]
  788.  
  789. RFC 1098                          SNMP                        April 1989
  790.  
  791.  
  792. 4.  Protocol Specification
  793.  
  794.    The network management protocol is an application protocol by which
  795.    the variables of an agent's MIB may be inspected or altered.
  796.  
  797.    Communication among protocol entities is accomplished by the exchange
  798.    of messages, each of which is entirely and independently represented
  799.    within a single UDP datagram using the basic encoding rules of ASN.1
  800.    (as discussed in Section 3.2.2).  A message consists of a version
  801.    identifier, an SNMP community name, and a protocol data unit (PDU).
  802.    A protocol entity receives messages at UDP port 161 on the host with
  803.    which it is associated for all messages except for those which report
  804.    traps (i.e., all messages except those which contain the Trap-PDU).
  805.    Messages which report traps should be received on UDP port 162 for
  806.    further processing.  An implementation of this protocol need not
  807.    accept messages whose length exceeds 484 octets.  However, it is
  808.    recommended that implementations support larger datagrams whenever
  809.    feasible.
  810.  
  811.    It is mandatory that all implementations of the SNMP support the five
  812.    PDUs: GetRequest-PDU, GetNextRequest-PDU, GetResponse-PDU,
  813.    SetRequest-PDU, and Trap-PDU.
  814.  
  815.     RFC1098-SNMP DEFINITIONS ::= BEGIN
  816.  
  817.      IMPORTS
  818.           ObjectName, ObjectSyntax, NetworkAddress, IpAddress, TimeTicks
  819.                   FROM RFC1065-SMI;
  820.  
  821.  
  822.      -- top-level message
  823.  
  824.              Message ::=
  825.                      SEQUENCE {
  826.                           version        -- version-1 for this RFC
  827.                              INTEGER {
  828.                                  version-1(0)
  829.                              },
  830.  
  831.                          community      -- community name
  832.                              OCTET STRING,
  833.  
  834.                          data           -- e.g., PDUs if trivial
  835.                              ANY        -- authentication is being used
  836.                      }
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843. Case, Fedor, Schoffstall, & Davin                              [Page 15]
  844.  
  845. RFC 1098                          SNMP                        April 1989
  846.  
  847.  
  848.      -- protocol data units
  849.  
  850.              PDUs ::=
  851.                      CHOICE {
  852.                          get-request
  853.                              GetRequest-PDU,
  854.  
  855.                          get-next-request
  856.                              GetNextRequest-PDU,
  857.  
  858.                          get-response
  859.                              GetResponse-PDU,
  860.  
  861.                          set-request
  862.                              SetRequest-PDU,
  863.  
  864.                          trap
  865.                              Trap-PDU
  866.                           }
  867.  
  868.      -- the individual PDUs and commonly used
  869.      -- data types will be defined later
  870.  
  871.      END
  872.  
  873.  
  874. 4.1.  Elements of Procedure
  875.  
  876.    This section describes the actions of a protocol entity implementing
  877.    the SNMP. Note, however, that it is not intended to constrain the
  878.    internal architecture of any conformant implementation.
  879.  
  880.    In the text that follows, the term transport address is used.  In the
  881.    case of the UDP, a transport address consists of an IP address along
  882.    with a UDP port.  Other transport services may be used to support the
  883.    SNMP.  In these cases, the definition of a transport address should
  884.    be made accordingly.
  885.  
  886.    The top-level actions of a protocol entity which generates a message
  887.    are as follows:
  888.  
  889.         (1)  It first constructs the appropriate PDU, e.g., the
  890.              GetRequest-PDU, as an ASN.1 object.
  891.  
  892.         (2)  It then passes this ASN.1 object along with a community
  893.              name its source transport address and the destination
  894.              transport address, to the service which implements the
  895.              desired authentication scheme.  This authentication
  896.  
  897.  
  898.  
  899. Case, Fedor, Schoffstall, & Davin                              [Page 16]
  900.  
  901. RFC 1098                          SNMP                        April 1989
  902.  
  903.  
  904.              service returns another ASN.1 object.
  905.  
  906.         (3)  The protocol entity then constructs an ASN.1 Message
  907.              object, using the community name and the resulting ASN.1
  908.              object.
  909.  
  910.         (4)  This new ASN.1 object is then serialized, using the basic
  911.              encoding rules of ASN.1, and then sent using a transport
  912.              service to the peer protocol entity.
  913.  
  914.    Similarly, the top-level actions of a protocol entity which receives
  915.    a message are as follows:
  916.  
  917.         (1)  It performs a rudimentary parse of the incoming datagram
  918.              to build an ASN.1 object corresponding to an ASN.1
  919.              Message object. If the parse fails, it discards the
  920.              datagram and performs no further actions.
  921.  
  922.         (2)  It then verifies the version number of the SNMP message.
  923.              If there is a mismatch, it discards the datagram and
  924.              performs no further actions.
  925.  
  926.         (3)  The protocol entity then passes the community name and
  927.              user data found in the ASN.1 Message object, along with
  928.              the datagram's source and destination transport addresses
  929.              to the service which implements the desired
  930.              authentication scheme.  This entity returns another ASN.1
  931.              object, or signals an authentication failure.  In the
  932.              latter case, the protocol entity notes this failure,
  933.              (possibly) generates a trap, and discards the datagram
  934.              and performs no further actions.
  935.  
  936.         (4)  The protocol entity then performs a rudimentary parse on
  937.              the ASN.1 object returned from the authentication service
  938.              to build an ASN.1 object corresponding to an ASN.1 PDUs
  939.              object.  If the parse fails, it discards the datagram and
  940.              performs no further actions.  Otherwise, using the named
  941.              SNMP community, the appropriate profile is selected, and
  942.              the PDU is processed accordingly.  If, as a result of
  943.              this processing, a message is returned then the source
  944.              transport address that the response message is sent from
  945.              shall be identical to the destination transport address
  946.              that the original request message was sent to.
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955. Case, Fedor, Schoffstall, & Davin                              [Page 17]
  956.  
  957. RFC 1098                          SNMP                        April 1989
  958.  
  959.  
  960. 4.1.1.  Common Constructs
  961.  
  962.    Before introducing the six PDU types of the protocol, it is
  963.    appropriate to consider some of the ASN.1 constructs used frequently:
  964.  
  965.                   -- request/response information
  966.  
  967.                   RequestID ::=
  968.                           INTEGER
  969.  
  970.                   ErrorStatus ::=
  971.                           INTEGER {
  972.                               noError(0),
  973.                               tooBig(1),
  974.                               noSuchName(2),
  975.                               badValue(3),
  976.                               readOnly(4)
  977.                               genErr(5)
  978.                           }
  979.  
  980.                   ErrorIndex ::=
  981.                           INTEGER
  982.  
  983.  
  984.                   -- variable bindings
  985.  
  986.                   VarBind ::=
  987.                           SEQUENCE {
  988.                               name
  989.                                   ObjectName,
  990.  
  991.                               value
  992.                                   ObjectSyntax
  993.                           }
  994.  
  995.                   VarBindList ::=
  996.                           SEQUENCE OF
  997.                               VarBind
  998.  
  999.  
  1000.    RequestIDs are used to distinguish among outstanding requests.  By
  1001.    use of the RequestID, an SNMP application entity can correlate
  1002.    incoming responses with outstanding requests.  In cases where an
  1003.    unreliable datagram service is being used, the RequestID also
  1004.    provides a simple means of identifying messages duplicated by the
  1005.    network.
  1006.  
  1007.    A non-zero instance of ErrorStatus is used to indicate that an
  1008.  
  1009.  
  1010.  
  1011. Case, Fedor, Schoffstall, & Davin                              [Page 18]
  1012.  
  1013. RFC 1098                          SNMP                        April 1989
  1014.  
  1015.  
  1016.    exception occurred while processing a request.  In these cases,
  1017.    ErrorIndex may provide additional information by indicating which
  1018.    variable in a list caused the exception.
  1019.  
  1020.    The term variable refers to an instance of a managed object.  A
  1021.    variable binding, or VarBind, refers to the pairing of the name of a
  1022.    variable to the variable's value.  A VarBindList is a simple list of
  1023.    variable names and corresponding values.  Some PDUs are concerned
  1024.    only with the name of a variable and not its value (e.g., the
  1025.    GetRequest-PDU).  In this case, the value portion of the binding is
  1026.    ignored by the protocol entity.  However, the value portion must
  1027.    still have valid ASN.1 syntax and encoding.  It is recommended that
  1028.    the ASN.1 value NULL be used for the value portion of such bindings.
  1029.  
  1030. 4.1.2.  The GetRequest-PDU
  1031.  
  1032.              The form of the GetRequest-PDU is:
  1033.                   GetRequest-PDU ::=
  1034.                       [0]
  1035.                           IMPLICIT SEQUENCE {
  1036.                               request-id
  1037.                                   RequestID,
  1038.  
  1039.                               error-status        -- always 0
  1040.                                   ErrorStatus,
  1041.  
  1042.                               error-index         -- always 0
  1043.                                   ErrorIndex,
  1044.  
  1045.                               variable-bindings
  1046.                                   VarBindList
  1047.                           }
  1048.  
  1049.  
  1050.    The GetRequest-PDU is generated by a protocol entity only at the
  1051.    request of its SNMP application entity.
  1052.  
  1053.    Upon receipt of the GetRequest-PDU, the receiving protocol entity
  1054.    responds according to any applicable rule in the list below:
  1055.  
  1056.         (1)  If, for any object named in the variable-bindings field,
  1057.              the object's name does not exactly match the name of some
  1058.              object available for get operations in the relevant MIB
  1059.              view, then the receiving entity sends to the originator
  1060.              of the received message the GetResponse-PDU of identical
  1061.              form, except that the value of the error-status field is
  1062.              noSuchName, and the value of the error-index field is the
  1063.              index of said object name component in the received
  1064.  
  1065.  
  1066.  
  1067. Case, Fedor, Schoffstall, & Davin                              [Page 19]
  1068.  
  1069. RFC 1098                          SNMP                        April 1989
  1070.  
  1071.  
  1072.              message.
  1073.  
  1074.         (2)  If, for any object named in the variable-bindings field,
  1075.              the object is an aggregate type (as defined in the SMI),
  1076.              then the receiving entity sends to the originator of the
  1077.              received message the GetResponse-PDU of identical form,
  1078.              except that the value of the error-status field is
  1079.              noSuchName, and the value of the error-index field is the
  1080.              index of said object name component in the received
  1081.              message.
  1082.  
  1083.         (3)  If the size of the GetResponse-PDU generated as described
  1084.              below would exceed a local limitation, then the receiving
  1085.              entity sends to the originator of the received message
  1086.              the GetResponse-PDU of identical form, except that the
  1087.              value of the error-status field is tooBig, and the value
  1088.              of the error-index field is zero.
  1089.  
  1090.         (4)  If, for any object named in the variable-bindings field,
  1091.              the value of the object cannot be retrieved for reasons
  1092.              not covered by any of the foregoing rules, then the
  1093.              receiving entity sends to the originator of the received
  1094.              message the GetResponse-PDU of identical form, except
  1095.              that the value of the error-status field is genErr and
  1096.              the value of the error-index field is the index of said
  1097.              object name component in the received message.
  1098.  
  1099.    If none of the foregoing rules apply, then the receiving protocol
  1100.    entity sends to the originator of the received message the
  1101.    GetResponse-PDU such that, for each object named in the variable-
  1102.    bindings field of the received message, the corresponding component
  1103.    of the GetResponse-PDU represents the name and value of that
  1104.    variable.  The value of the error- status field of the GetResponse-
  1105.    PDU is noError and the value of the error-index field is zero.  The
  1106.    value of the request-id field of the GetResponse-PDU is that of the
  1107.    received message.
  1108.  
  1109. 4.1.3.  The GetNextRequest-PDU
  1110.  
  1111.    The form of the GetNextRequest-PDU is identical to that of the
  1112.    GetRequest-PDU except for the indication of the PDU type.  In the
  1113.    ASN.1 language:
  1114.  
  1115.                   GetNextRequest-PDU ::=
  1116.                       [1]
  1117.                           IMPLICIT SEQUENCE {
  1118.                               request-id
  1119.                                   RequestID,
  1120.  
  1121.  
  1122.  
  1123. Case, Fedor, Schoffstall, & Davin                              [Page 20]
  1124.  
  1125. RFC 1098                          SNMP                        April 1989
  1126.  
  1127.  
  1128.                               error-status        -- always 0
  1129.                                   ErrorStatus,
  1130.  
  1131.                               error-index         -- always 0
  1132.                                   ErrorIndex,
  1133.  
  1134.                               variable-bindings
  1135.                                   VarBindList
  1136.                           }
  1137.  
  1138.  
  1139.    The GetNextRequest-PDU is generated by a protocol entity only at the
  1140.    request of its SNMP application entity.
  1141.  
  1142.    Upon receipt of the GetNextRequest-PDU, the receiving protocol entity
  1143.    responds according to any applicable rule in the list below:
  1144.  
  1145.         (1)  If, for any object name in the variable-bindings field,
  1146.              that name does not lexicographically precede the name of
  1147.              some object available for get operations in the relevant
  1148.              MIB view, then the receiving entity sends to the
  1149.              originator of the received message the GetResponse-PDU of
  1150.              identical form, except that the value of the error-status
  1151.              field is noSuchName, and the value of the error-index
  1152.              field is the index of said object name component in the
  1153.              received message.
  1154.  
  1155.         (2)  If the size of the GetResponse-PDU generated as described
  1156.              below would exceed a local limitation, then the receiving
  1157.              entity sends to the originator of the received message
  1158.              the GetResponse-PDU of identical form, except that the
  1159.              value of the error-status field is tooBig, and the value
  1160.              of the error-index field is zero.
  1161.  
  1162.         (3)  If, for any object named in the variable-bindings field,
  1163.              the value of the lexicographical successor to the named
  1164.              object cannot be retrieved for reasons not covered by any
  1165.              of the foregoing rules, then the receiving entity sends
  1166.              to the originator of the received message the
  1167.              GetResponse-PDU of identical form, except that the value
  1168.              of the error-status field is genErr and the value of the
  1169.              error-index field is the index of said object name
  1170.              component in the received message.
  1171.  
  1172.    If none of the foregoing rules apply, then the receiving protocol
  1173.    entity sends to the originator of the received message the
  1174.    GetResponse-PDU such that, for each name in the variable-bindings
  1175.    field of the received message, the corresponding component of the
  1176.  
  1177.  
  1178.  
  1179. Case, Fedor, Schoffstall, & Davin                              [Page 21]
  1180.  
  1181. RFC 1098                          SNMP                        April 1989
  1182.  
  1183.  
  1184.    GetResponse-PDU represents the name and value of that object whose
  1185.    name is, in the lexicographical ordering of the names of all objects
  1186.    available for get operations in the relevant MIB view, together with
  1187.    the value of the name field of the given component, the immediate
  1188.    successor to that value.  The value of the error-status field of the
  1189.    GetResponse-PDU is noError and the value of the errorindex field is
  1190.    zero.  The value of the request-id field of the GetResponse-PDU is
  1191.    that of the received message.
  1192.  
  1193. 4.1.3.1.  Example of Table Traversal
  1194.  
  1195.    One important use of the GetNextRequest-PDU is the traversal of
  1196.    conceptual tables of information within the MIB. The semantics of
  1197.    this type of SNMP message, together with the protocol-specific
  1198.    mechanisms for identifying individual instances of object types in
  1199.    the MIB, affords  access to related objects in the MIB as if they
  1200.    enjoyed a tabular organization.
  1201.  
  1202.    By the SNMP exchange sketched below, an SNMP application entity might
  1203.    extract the destination address and next hop gateway for each entry
  1204.    in the routing table of a particular network element. Suppose that
  1205.    this routing table has three entries:
  1206.  
  1207.          Destination                     NextHop         Metric
  1208.  
  1209.          10.0.0.99                       89.1.1.42       5
  1210.          9.1.2.3                         99.0.0.3        3
  1211.          10.0.0.51                       89.1.1.42       5
  1212.  
  1213.  
  1214.    The management station sends to the SNMP agent a GetNextRequest-PDU
  1215.    containing the indicated OBJECT IDENTIFIER values as the requested
  1216.    variable names:
  1217.  
  1218.    GetNextRequest ( ipRouteDest, ipRouteNextHop, ipRouteMetric1 )
  1219.  
  1220.  
  1221.    The SNMP agent responds with a GetResponse-PDU:
  1222.  
  1223.                  GetResponse (( ipRouteDest.9.1.2.3 =  "9.1.2.3" ),
  1224.                          ( ipRouteNextHop.9.1.2.3 = "99.0.0.3" ),
  1225.                          ( ipRouteMetric1.9.1.2.3 = 3 ))
  1226.  
  1227.  
  1228.    The management station continues with:
  1229.  
  1230.                  GetNextRequest ( ipRouteDest.9.1.2.3,
  1231.                          ipRouteNextHop.9.1.2.3,
  1232.  
  1233.  
  1234.  
  1235. Case, Fedor, Schoffstall, & Davin                              [Page 22]
  1236.  
  1237. RFC 1098                          SNMP                        April 1989
  1238.  
  1239.  
  1240.                          ipRouteMetric1.9.1.2.3 )
  1241.  
  1242.  
  1243.    The SNMP agent responds:
  1244.  
  1245.                  GetResponse (( ipRouteDest.10.0.0.51 = "10.0.0.51" ),
  1246.                          ( ipRouteNextHop.10.0.0.51 = "89.1.1.42" ),
  1247.                          ( ipRouteMetric1.10.0.0.51 = 5 ))
  1248.  
  1249.  
  1250.    The management station continues with:
  1251.  
  1252.                  GetNextRequest ( ipRouteDest.10.0.0.51,
  1253.                          ipRouteNextHop.10.0.0.51,
  1254.                          ipRouteMetric1.10.0.0.51 )
  1255.  
  1256.  
  1257.    The SNMP agent responds:
  1258.  
  1259.                  GetResponse (( ipRouteDest.10.0.0.99 = "10.0.0.99" ),
  1260.                          ( ipRouteNextHop.10.0.0.99 = "89.1.1.42" ),
  1261.                          ( ipRouteMetric1.10.0.0.99 = 5 ))
  1262.  
  1263.  
  1264.    The management station continues with:
  1265.  
  1266.                  GetNextRequest ( ipRouteDest.10.0.0.99,
  1267.                          ipRouteNextHop.10.0.0.99,
  1268.                          ipRouteMetric1.10.0.0.99 )
  1269.  
  1270.  
  1271.    As there are no further entries in the table, the SNMP agent returns
  1272.    those objects that are next in the lexicographical ordering of the
  1273.    known object names.  This response signals the end of the routing
  1274.    table to the management station.
  1275.  
  1276. 4.1.4.  The GetResponse-PDU
  1277.  
  1278.    The form of the GetResponse-PDU is identical to that of the
  1279.    GetRequest-PDU except for the indication of the PDU type.  In the
  1280.    ASN.1 language:
  1281.  
  1282.                   GetResponse-PDU ::=
  1283.                       [2]
  1284.                           IMPLICIT SEQUENCE {
  1285.                               request-id
  1286.                                   RequestID,
  1287.  
  1288.  
  1289.  
  1290.  
  1291. Case, Fedor, Schoffstall, & Davin                              [Page 23]
  1292.  
  1293. RFC 1098                          SNMP                        April 1989
  1294.  
  1295.  
  1296.                               error-status
  1297.                                   ErrorStatus,
  1298.  
  1299.                               error-index
  1300.                                   ErrorIndex,
  1301.  
  1302.                               variable-bindings
  1303.                                   VarBindList
  1304.                           }
  1305.  
  1306.  
  1307.    The GetResponse-PDU is generated by a protocol entity only upon
  1308.    receipt of the GetRequest-PDU, GetNextRequest-PDU, or SetRequest-PDU,
  1309.    as described elsewhere in this document.
  1310.  
  1311.    Upon receipt of the GetResponse-PDU, the receiving protocol entity
  1312.    presents its contents to its SNMP application entity.
  1313.  
  1314. 4.1.5.  The SetRequest-PDU
  1315.  
  1316.    The form of the SetRequest-PDU is identical to that of the
  1317.    GetRequest-PDU except for the indication of the PDU type.  In the
  1318.    ASN.1 language:
  1319.  
  1320.                   SetRequest-PDU ::=
  1321.                       [3]
  1322.                           IMPLICIT SEQUENCE {
  1323.                               request-id
  1324.                                   RequestID,
  1325.  
  1326.                               error-status        -- always 0
  1327.                                   ErrorStatus,
  1328.  
  1329.                               error-index         -- always 0
  1330.                                   ErrorIndex,
  1331.  
  1332.                               variable-bindings
  1333.                                   VarBindList
  1334.                           }
  1335.  
  1336.  
  1337.    The SetRequest-PDU is generated by a protocol entity only at the
  1338.    request of its SNMP application entity.
  1339.  
  1340.    Upon receipt of the SetRequest-PDU, the receiving entity responds
  1341.    according to any applicable rule in the list below:
  1342.  
  1343.         (1)  If, for any object named in the variable-bindings field,
  1344.  
  1345.  
  1346.  
  1347. Case, Fedor, Schoffstall, & Davin                              [Page 24]
  1348.  
  1349. RFC 1098                          SNMP                        April 1989
  1350.  
  1351.  
  1352.              the object is not available for set operations in the
  1353.              relevant MIB view, then the receiving entity sends to the
  1354.              originator of the received message the GetResponse-PDU of
  1355.              identical form, except that the value of the error-status
  1356.              field is noSuchName, and the value of the error-index
  1357.              field is the index of said object name component in the
  1358.              received message.
  1359.  
  1360.         (2)  If, for any object named in the variable-bindings field,
  1361.              the contents of the value field does not, according to
  1362.              the ASN.1 language, manifest a type, length, and value
  1363.              that is consistent with that required for the variable,
  1364.              then the receiving entity sends to the originator of the
  1365.              received message the GetResponse-PDU of identical form,
  1366.              except that the value of the error-status field is
  1367.              badValue, and the value of the error-index field is the
  1368.              index of said object name in the received message.
  1369.  
  1370.         (3)  If the size of the Get Response type message generated as
  1371.              described below would exceed a local limitation, then the
  1372.              receiving entity sends to the originator of the received
  1373.              message the GetResponse-PDU of identical form, except
  1374.              that the value of the error-status field is tooBig, and
  1375.              the value of the error-index field is zero.
  1376.  
  1377.         (4)  If, for any object named in the variable-bindings field,
  1378.              the value of the named object cannot be altered for
  1379.              reasons not covered by any of the foregoing rules, then
  1380.              the receiving entity sends to the originator of the
  1381.              received message the GetResponse-PDU of identical form,
  1382.              except that the value of the error-status field is genErr
  1383.              and the value of the error-index field is the index of
  1384.              said object name component in the received message.
  1385.  
  1386.    If none of the foregoing rules apply, then for each object named in
  1387.    the variable-bindings field of the received message, the
  1388.    corresponding value is assigned to the variable.  Each variable
  1389.    assignment specified by the SetRequest-PDU should be effected as if
  1390.    simultaneously set with respect to all other assignments specified in
  1391.    the same message.
  1392.  
  1393.    The receiving entity then sends to the originator of the received
  1394.    message the GetResponse-PDU of identical form except that the value
  1395.    of the error-status field of the generated message is noError and the
  1396.    value of the error-index field is zero.
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403. Case, Fedor, Schoffstall, & Davin                              [Page 25]
  1404.  
  1405. RFC 1098                          SNMP                        April 1989
  1406.  
  1407.  
  1408. 4.1.6.  The Trap-PDU
  1409.  
  1410.    The form of the Trap-PDU is:
  1411.  
  1412.      Trap-PDU ::=
  1413.          [4]
  1414.  
  1415.               IMPLICIT SEQUENCE {
  1416.                  enterprise          -- type of object generating
  1417.                                      -- trap, see sysObjectID in [2]
  1418.                      OBJECT IDENTIFIER,
  1419.  
  1420.                  agent-addr          -- address of object generating
  1421.                      NetworkAddress, -- trap
  1422.  
  1423.                  generic-trap        -- generic trap type
  1424.                      INTEGER {
  1425.                          coldStart(0),
  1426.                          warmStart(1),
  1427.                          linkDown(2),
  1428.                          linkUp(3),
  1429.                          authenticationFailure(4),
  1430.                          egpNeighborLoss(5),
  1431.                          enterpriseSpecific(6)
  1432.                      },
  1433.  
  1434.                  specific-trap     -- specific code, present even
  1435.                      INTEGER,      -- if generic-trap is not
  1436.                                    -- enterpriseSpecific
  1437.  
  1438.                  time-stamp        -- time elapsed between the last
  1439.                    TimeTicks,      -- (re)initialization of the network
  1440.                                    -- entity and the generation of the
  1441.                                       trap
  1442.  
  1443.                  variable-bindings   -- "interesting" information
  1444.                       VarBindList
  1445.              }
  1446.  
  1447.  
  1448.    The Trap-PDU is generated by a protocol entity only at the request of
  1449.    the SNMP application entity.  The means by which an SNMP application
  1450.    entity selects the destination addresses of the SNMP application
  1451.    entities is implementation-specific.
  1452.  
  1453.    Upon receipt of the Trap-PDU, the receiving protocol entity presents
  1454.    its contents to its SNMP application entity.
  1455.  
  1456.  
  1457.  
  1458.  
  1459. Case, Fedor, Schoffstall, & Davin                              [Page 26]
  1460.  
  1461. RFC 1098                          SNMP                        April 1989
  1462.  
  1463.  
  1464.    The significance of the variable-bindings component of the Trap-PDU
  1465.    is implementation-specific.
  1466.  
  1467.    Interpretations of the value of the generic-trap field are:
  1468.  
  1469. 4.1.6.1.  The coldStart Trap
  1470.  
  1471.    A coldStart(0) trap signifies that the sending protocol entity is
  1472.    reinitializing itself such that the agent's configuration or the
  1473.    protocol entity implementation may be altered.
  1474.  
  1475. 4.1.6.2.  The warmStart Trap
  1476.  
  1477.    A warmStart(1) trap signifies that the sending protocol entity is
  1478.    reinitializing itself such that neither the agent configuration nor
  1479.    the protocol entity implementation is altered.
  1480.  
  1481. 4.1.6.3.  The linkDown Trap
  1482.  
  1483.    A linkDown(2) trap signifies that the sending protocol entity
  1484.    recognizes a failure in one of the communication links represented in
  1485.    the agent's configuration.
  1486.  
  1487.    The Trap-PDU of type linkDown contains as the first element of its
  1488.    variable-bindings, the name and value of the ifIndex instance for the
  1489.    affected interface.
  1490.  
  1491. 4.1.6.4.  The linkUp Trap
  1492.  
  1493.    A linkUp(3) trap signifies that the sending protocol entity
  1494.    recognizes that one of the communication links represented in the
  1495.    agent's configuration has come up.
  1496.  
  1497.    The Trap-PDU of type linkUp contains as the first element of its
  1498.    variable-bindings, the name and value of the ifIndex instance for the
  1499.    affected interface.
  1500.  
  1501. 4.1.6.5.  The authenticationFailure Trap
  1502.  
  1503.    An authenticationFailure(4) trap signifies that the sending protocol
  1504.    entity is the addressee of a protocol message that is not properly
  1505.    authenticated.  While implementations of the SNMP must be capable of
  1506.    generating this trap, they must also be capable of suppressing the
  1507.    emission of such traps via an implementation-specific mechanism.
  1508.  
  1509. 4.1.6.6.  The egpNeighborLoss Trap
  1510.  
  1511.    An egpNeighborLoss(5) trap signifies that an EGP neighbor for whom
  1512.  
  1513.  
  1514.  
  1515. Case, Fedor, Schoffstall, & Davin                              [Page 27]
  1516.  
  1517. RFC 1098                          SNMP                        April 1989
  1518.  
  1519.  
  1520.    the sending protocol entity was an EGP peer has been marked down and
  1521.    the peer relationship no longer obtains.
  1522.  
  1523.    The Trap-PDU of type egpNeighborLoss contains as the first element of
  1524.    its variable-bindings, the name and value of the egpNeighAddr
  1525.    instance for the affected neighbor.
  1526.  
  1527. 4.1.6.7.  The enterpriseSpecific Trap
  1528.  
  1529.    A enterpriseSpecific(6) trap signifies that the sending protocol
  1530.    entity recognizes that some enterprise-specific event has occurred.
  1531.    The specific-trap field identifies the particular trap which
  1532.    occurred.
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571. Case, Fedor, Schoffstall, & Davin                              [Page 28]
  1572.  
  1573. RFC 1098                          SNMP                        April 1989
  1574.  
  1575.  
  1576. 5.  Definitions
  1577.  
  1578.      RFC1098-SNMP DEFINITIONS ::= BEGIN
  1579.  
  1580.       IMPORTS
  1581.           ObjectName, ObjectSyntax, NetworkAddress, IpAddress, TimeTicks
  1582.               FROM RFC1065-SMI;
  1583.  
  1584.  
  1585.           -- top-level message
  1586.  
  1587.           Message ::=
  1588.                   SEQUENCE {
  1589.                       version          -- version-1 for this RFC
  1590.                           INTEGER {
  1591.                               version-1(0)
  1592.                           },
  1593.  
  1594.                       community        -- community name
  1595.                           OCTET STRING,
  1596.  
  1597.                       data             -- e.g., PDUs if trivial
  1598.                           ANY          -- authentication is being used
  1599.                   }
  1600.  
  1601.  
  1602.           -- protocol data units
  1603.  
  1604.           PDUs ::=
  1605.                   CHOICE {
  1606.                               get-request
  1607.                                   GetRequest-PDU,
  1608.  
  1609.                               get-next-request
  1610.                                   GetNextRequest-PDU,
  1611.  
  1612.                               get-response
  1613.                                   GetResponse-PDU,
  1614.  
  1615.                               set-request
  1616.                                   SetRequest-PDU,
  1617.  
  1618.                               trap
  1619.                                   Trap-PDU
  1620.                           }
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627. Case, Fedor, Schoffstall, & Davin                              [Page 29]
  1628.  
  1629. RFC 1098                          SNMP                        April 1989
  1630.  
  1631.  
  1632.           -- PDUs
  1633.  
  1634.           GetRequest-PDU ::=
  1635.               [0]
  1636.                   IMPLICIT PDU
  1637.  
  1638.           GetNextRequest-PDU ::=
  1639.               [1]
  1640.                   IMPLICIT PDU
  1641.  
  1642.           GetResponse-PDU ::=
  1643.               [2]
  1644.                   IMPLICIT PDU
  1645.  
  1646.           SetRequest-PDU ::=
  1647.               [3]
  1648.                   IMPLICIT PDU
  1649.  
  1650.           PDU ::=
  1651.                   SEQUENCE {
  1652.                      request-id
  1653.                           INTEGER,
  1654.  
  1655.                       error-status      -- sometimes ignored
  1656.                           INTEGER {
  1657.                               noError(0),
  1658.                               tooBig(1),
  1659.                               noSuchName(2),
  1660.                               badValue(3),
  1661.                               readOnly(4),
  1662.                               genErr(5)
  1663.                           },
  1664.  
  1665.                       error-index       -- sometimes ignored
  1666.                          INTEGER,
  1667.  
  1668.                       variable-bindings -- values are sometimes ignored
  1669.                           VarBindList
  1670.                   }
  1671.  
  1672.           Trap-PDU ::=
  1673.               [4]
  1674.                  IMPLICIT SEQUENCE {
  1675.                       enterprise        -- type of object generating
  1676.                                         -- trap, see sysObjectID in [2]
  1677.  
  1678.  
  1679.                           OBJECT IDENTIFIER,
  1680.  
  1681.  
  1682.  
  1683. Case, Fedor, Schoffstall, & Davin                              [Page 30]
  1684.  
  1685. RFC 1098                          SNMP                        April 1989
  1686.  
  1687.  
  1688.                       agent-addr        -- address of object generating
  1689.                           NetworkAddress, -- trap
  1690.  
  1691.                       generic-trap      -- generic trap type
  1692.                           INTEGER {
  1693.                               coldStart(0),
  1694.                               warmStart(1),
  1695.                               linkDown(2),
  1696.                               linkUp(3),
  1697.                               authenticationFailure(4),
  1698.                               egpNeighborLoss(5),
  1699.                               enterpriseSpecific(6)
  1700.                           },
  1701.  
  1702.                       specific-trap  -- specific code, present even
  1703.                           INTEGER,   -- if generic-trap is not
  1704.                                      -- enterpriseSpecific
  1705.  
  1706.                       time-stamp     -- time elapsed between the last
  1707.                           TimeTicks, -- (re)initialization of the
  1708.                                         network
  1709.                                      -- entity and the generation of the
  1710.                                         trap
  1711.  
  1712.                        variable-bindings -- "interesting" information
  1713.                           VarBindList
  1714.                   }
  1715.  
  1716.  
  1717.           -- variable bindings
  1718.  
  1719.           VarBind ::=
  1720.                   SEQUENCE {
  1721.                       name
  1722.                           ObjectName,
  1723.  
  1724.                       value
  1725.                           ObjectSyntax
  1726.                   }
  1727.  
  1728.          VarBindList ::=
  1729.                   SEQUENCE OF
  1730.                      VarBind
  1731.  
  1732.          END
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739. Case, Fedor, Schoffstall, & Davin                              [Page 31]
  1740.  
  1741. RFC 1098                          SNMP                        April 1989
  1742.  
  1743.  
  1744. 6.  Acknowledgements
  1745.  
  1746.    This memo was influenced by the IETF SNMP Extensions working
  1747.    group:
  1748.  
  1749.              Karl Auerbach, Epilogue Technology
  1750.              K. Ramesh Babu, Excelan
  1751.              Amatzia Ben-Artzi, 3Com/Bridge
  1752.              Lawrence Besaw, Hewlett-Packard
  1753.              Jeffrey D. Case, University of Tennessee at Knoxville
  1754.              Anthony Chung, Sytek
  1755.              James Davidson, The Wollongong Group
  1756.              James R. Davin, MIT Laboratory for Computer Science
  1757.              Mark S. Fedor, NYSERNet
  1758.              Phill Gross, The MITRE Corporation
  1759.              Satish Joshi, ACC
  1760.              Dan Lynch, Advanced Computing Environments
  1761.              Keith McCloghrie, The Wollongong Group
  1762.              Marshall T. Rose, The Wollongong Group (chair)
  1763.              Greg Satz, cisco
  1764.              Martin Lee Schoffstall, Rensselaer Polytechnic Institute
  1765.              Wengyik Yeong, NYSERNet
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795. Case, Fedor, Schoffstall, & Davin                              [Page 32]
  1796.  
  1797. RFC 1098                          SNMP                        April 1989
  1798.  
  1799.  
  1800. 7.  References
  1801.  
  1802.    [1] Cerf, V., "IAB Recommendations for the Development of
  1803.        Internet Network Management Standards", RFC 1052, IAB,
  1804.        April 1988.
  1805.  
  1806.    [2] Rose, M., and K. McCloghrie, "Structure and Identification
  1807.        of Management Information for TCP/IP-based internets",
  1808.        RFC 1065, TWG, August 1988.
  1809.  
  1810.    [3] McCloghrie, K., and M. Rose, "Management Information Base
  1811.        for Network Management of TCP/IP-based internets",
  1812.        RFC 1066, TWG, August 1988.
  1813.  
  1814.    [4] Case, J., M. Fedor, M. Schoffstall, and J. Davin,
  1815.        "A Simple Network Management Protocol", Internet
  1816.        Engineering Task Force working note, Network Information
  1817.        Center, SRI International, Menlo Park, California,
  1818.        March 1988.
  1819.  
  1820.    [5] Davin, J., J. Case, M. Fedor, and M. Schoffstall,
  1821.        "A Simple Gateway Monitoring Protocol", RFC 1028,
  1822.        Proteon, University of Tennessee at Knoxville,
  1823.        Cornell University, and Rensselaer Polytechnic
  1824.        Institute, November 1987.
  1825.  
  1826.    [6] Information processing systems - Open Systems
  1827.        Interconnection, "Specification of Abstract Syntax
  1828.        Notation One (ASN.1)", International Organization for
  1829.        Standardization, International Standard 8824,
  1830.        December 1987.
  1831.  
  1832.    [7] Information processing systems - Open Systems
  1833.        Interconnection, "Specification of Basic Encoding Rules
  1834.        for Abstract Notation One (ASN.1)", International
  1835.        Organization for Standardization, International Standard
  1836.        8825, December 1987.
  1837.  
  1838.    [8] Postel, J., "User Datagram Protocol", RFC 768,
  1839.        USC/Information Sciences Institute, November 1980.
  1840.  
  1841.    [9] Warrier, U., and L. Besaw, "The Common Management Information
  1842.        Services and Protocol over TCP/IP", RFC 1095, Unisys Corporation
  1843.        and Hewlett-Packard, April 1989.
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851. Case, Fedor, Schoffstall, & Davin                              [Page 33]
  1852.  
  1853. RFC 1098                          SNMP                        April 1989
  1854.  
  1855.  
  1856. Authors' Addresses
  1857.  
  1858.        Jeffrey D. Case
  1859.        University of Tennessee Computing Center
  1860.        Associate Driector
  1861.        200 Stokely Management Center
  1862.        Knoxville, TN 37996-0520
  1863.  
  1864.        Phone: (615) 974-6721
  1865.  
  1866.        Email: case@UTKUX1.UTK.EDU
  1867.  
  1868.  
  1869.        Mark Fedor
  1870.        Nysernet, Inc.
  1871.        Rensselaer Technology Park
  1872.        125 Jordan Road
  1873.        Troy, NY 12180
  1874.  
  1875.        Phone: (518) 283-8860
  1876.  
  1877.        Email: fedor@patton.NYSER.NET
  1878.  
  1879.  
  1880.        Martin Lee Schoffstall
  1881.        NYSERNET Inc.
  1882.        Rensselaer Technology Park
  1883.        165 Jordan Road
  1884.        Troy, NY 12180
  1885.  
  1886.        Phone: (518) 283-8860
  1887.  
  1888.        Email: schoff@NISC.NYSER.NET
  1889.  
  1890.  
  1891.        Chuck Davin
  1892.        MIT Laboratory for Computer Science, NE43-507
  1893.        545 Technology Square
  1894.        Cambridge, MA 02139
  1895.  
  1896.        Phone: (617) 253-6020
  1897.  
  1898.        EMail: jrd@ptt.lcs.mit.edu
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907. Case, Fedor, Schoffstall, & Davin                              [Page 34]
  1908. ion of thn.
  1909.  
  1910.  vic SNMP oion of thn.
  1911.  
  1912.  vic SNMP oion of thn.
  1913.  
  1914.  vic SNMP oion of thn.
  1915.  
  1916.  vic SNMP oion of thn.
  1917.  
  1918.  vic SNMP oion of thn.
  1919.  
  1920.  vic SNMP oion of thn.
  1921.  
  1922.  vic SNMP oion of thn.
  1923.  
  1924.  vic SNMP oion of th
  1925.